# from common.uibase import driver
#
#
# class loginPage(object):  # 定义LoginPage类
#     username_loc = ("id", "account")  # 定位用户名输入框
#     password_loc = ("id", "password")  # 定位密码输入框
#     submit_loc = ("class name", "ant-btn-primary")  # 定位登录按钮
#
#     def inputUsername(self, username, timeout=10):
#         """
#         输入用户名
#         :param username:用户名
#         :param timeout: 终止时间
#         :return:
#         """
#         driver.sendKeys(self.username_loc, timeout, username)
#
#     def inputPassword(self, password, timeout=10):
#         """
#         输入密码
#         :param password: 密码
#         :param timeout: 终止时间
#         :return:
#         """
#         driver.sendKeys(self.password_loc, timeout, password)
#
#     def clickSubmit(self, timeout=10):
#         """
#         点击登录按钮
#         :param timeout:终止时间
#         :return:
#         """
#         driver.click(self.submit_loc, timeout)
